package com.linian.pushforcampus.service;

import com.linian.pushforcampus.domain.User;

import java.util.List;

/**
 * packageName com.linian.pushforcampus.service
 *
 * @author Lennon
 * @interfaceName UserService
 * @date 2023/11/12
 * @description TODO
 */
public interface UserService {
    List<User> getAllUsers();

    List<User> getAllUsersByUser(User user);
    User getUserById(Integer id);
    User getUserByCode(String code);
    void insertUser(User user);
    void updateUser(User user);
    void deleteUser(Integer id);

    /**
     * 更新数据库中user表中的状态，并插入新的数据
     * @return
     */
    List<User> getNowUserByWechat();

    /**
     * 查询userName状态为0的用户
     * @return
     */
    List<User> getUserByIdWhoState1();
}
